package com.shuangti.security.controller;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.shuangti.security.entity.LoginRequest;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
@RequestMapping("/security")
public class SecurityController {

    @PostMapping("/login")
    public Mono<String> getToken(@JsonProperty LoginRequest request){
        return Mono.just("No！！");
    }
}
